var collectionFormTemplete="  <div id=\"Collection_CommonForm\" class=\"popCollection\" style=\"display:none\">\n" +
    "    <div class=\"cle-cont\">\n" +
    "        <div class=\"cel-top-tl\">\n" +
    "            <p class=\"top-tl-p1\">绑定官方二维码</p>\n" +
    "            <p class=\"top-tl-p2\">收藏成功</p>\n" +
    "        </div>\n" +
    "        <div class=\"popTi-wrp1\">\n" +
    "            <div class=\"erweima-cel\">\n" +
    "                <div class=\"bg-erm\">\n" +
    "                    <img src=\"{{d.QrCodePath}}\" alt=\"\">\n" +
    "                </div>\n" +
    "            </div>\n" +
    "            <div class=\"cel-scan\"><img src=\"http://img.hznzcn.com/imgs/weixinlogo.png\" alt=\"\">扫一扫，{{d.typetitle}}信息<span>实时推送</span></div>\n" +
    "            <div class=\"message\">订单消息、售后进展、品牌上新、商品上下架等消息实时推送<span></span></div>\n" +
    "            <div class=\"step-process\"></div>\n" +
    "        </div>\n" +
    "        <div class=\"popTi-wrp2 display_none\">\n" +
    "            <div class=\"sucGreen\"></div>\n" +
    "            <div class=\"suceeTxt\">收藏成功！</div>\n" +
    "            <div class=\"look-link\">收藏成功的{{d.collectiontypename}} 可在“会员中心”-“<a href=\"{{d.collectionurl}}\" target=\"_blank\" onclick=\"return CloseCollectionForm();\">我的{{d.collectiontypename}}收藏</a>”中查看</div>\n" +
    "            <div class=\"firmBtn\" onclick=\"return CloseCollectionForm();\">确定</div>\n" +
    "        </div>\n" +
    "    </div>\n" +
    "</div>";

var tplProListItem_HoverInfo="<div class=\"quick-gn\" style=\"z-index:0\">\n" +
    "    <p class=\"mid-cz1\" onclick=\"show_uploadPlatform('{{d.Product_Id}}', '{{d.shopId}}')\">一键上传</p>\n" +
    "    <p class=\"mid-cz2 p_CollectProduct_{{d.Product_Id}}  Product_Collect_Button\" collectid=\"{{d.Product_Id}}\">收藏</p>\n" +
    "    <p class=\"mid-cz3\"><a href=\"/product/soukuan-pro.html?id={{d.Product_Id}}\" title=\"找相似商品\" rel=\"nofollow\" target=\"_blank\">找相似</a></p>\n" +
    "</div>\n" +
    "<div class=\"dataFrame\">\n" +
    "    <div class=\"statistical-lt\">\n" +
    "        <div class=\"statLf\">\n" +
    "            <p>月销量</p>\n" +
    "            <p class=\"st-lf-p1\">{{d.Sale1Month}}件</p>\n" +
    "        </div>\n" +
    "        <div class=\"statRg greenChos ProductPickRate_Div_{{d.Product_Id}}\">\n" +
    "\n" +
    "            {{# if(d.IsProductPresell=='0'){ }}\n" +
    "            <p class=\"less-Rg-p1\">缺货率: <i class=\"LastDay_LackRate_{{d.Product_Id}}\">-%</i></p>\n" +
    "            <div class=\"less-Rg-p2\" onmouseover=\"GetProductPickRate(this, '{{d.Product_Id}}')\">\n" +
    "                <span>查看报表</span>\n" +
    "            </div>\n" +
    "            {{# }else{  }}\n" +
    "            <p class=\"less-Rg-p1\">缺货率:<i> - </i></p>\n" +
    "            {{# }  }}\n" +
    "            <div class=\"reportWrap\">\n" +
    "                <div class=\"cont-data-rep\">\n" +
    "                    <img src=\"https://img.hznzcn.com/imgs/warite.gif\" alt=\"\" class=\"warite waitload_img_{{d.Product_Id}}\" />\n" +
    "\n" +
    "                    <div class=\"display_none OOS OOSDiv_{{d.Product_Id}}\" style=\"width: 385px;height: 150px;\">\n" +
    "                        <div class=\"OOS_top\" style=\" height: 33px; line-height: 33px;\">\n" +
    "                            <i>7天缺货率</i><span class=\"Span_RateType_{{d.Product_Id}}\" style=\" margin-left: 20px;\">\n" +
    "                            <span>最高:<span class=\"Height_LackRate_{{d.Product_Id}}\">0%</span></span><span class=\"OOS_margin_span\">,</span>\n" +
    "                            <span>最低:<span class=\"Lowest_LackRate_{{d.Product_Id}}\">0%</span></span></span>\n" +
    "                        </div>\n" +
    "                        <div class=\"OOSDivChart_{{d.Product_Id}}\" style=\" width: 385px; height: 125px;\"></div>\n" +
    "                    </div>\n" +
    "                </div>\n" +
    "            </div>\n" +
    "        </div>\n" +
    "    </div>\n" +
    "    <div class=\"difData-ad\">\n" +
    "        <div class=\"dt-brand\"><span>浏览量<i>{{d.Product_OnClicks}}</i></span></div>\n" +
    "        <div class=\"dt-brand\"><span class=\"dt-sp-ls1\">上传量<i class=\"Product_OneKeySum_{{d.Product_Id}}\">0</i></span><span>下载量<i class=\"Product_DownloadSum_{{d.Product_Id}}\">0</i></span></div>\n" +
    "    </div>\n" +
    "    <div class=\"enterShop powerbrandmedal\">\n" +
    "        <div class=\"ect-lf-bx\">\n" +
    "            <span class=\"entName\"><a target=\"_blank\" href=\"{{d.BrandURL}}\" title=\"{{d.BrandName}}\">{{d.BrandName}}</a></span>\n" +
    "            <span class=\"howYear\">{{d.Brand_Year}}年店</span>\n" +
    "\n" +
    "            {{# if(d.cooperation==1){ }}\n" +
    "            <span class=\"medalCom hezuo\" title=\"与女装网合作的档口\"></span>\n" +
    "            {{# }  }}\n" +
    "\n" +
    "            {{# if(d.isPowerBrand==1){ }}\n" +
    "            <span class=\"medalCom shili\" title=\"杭州女装网建议您优先选择「实力商家」\">实</span>\n" +
    "            {{# }  }}\n" +
    "            {{# if(d.isFactory==1){ }}\n" +
    "            <span class=\"medalCom gongchang\" title=\"有实体工厂\">厂</span>\n" +
    "            {{# }  }}\n" +
    "        </div>\n" +
    "        <div class=\"rig-go\">\n" +
    "            <a target=\"_blank\" href=\"{{d.BrandURL}}\" title=\"{{d.BrandName}}\"><code>&gt;</code></a>\n" +
    "        </div>\n" +
    "    </div>\n" +
    "</div>\n";


var yuncangTemplate="{{# for(var i in d){ }}" +
    "    {{# var item=d[i];}}" +
    "    {{# var price=(item.marketLowPrice/100.0).toFixed(2)}}" +
    " {{# if(item.id!=undefined){ }}"+
    "                       <li class=\"no-mrRi\">" +
    "                                    <div class=\"insideBox\">" +
    "                                        <div class=\"pic\" productid=\"{{item.id}}\" shopId= \"{{item.shop}}\">" +
    "                                            <a href=\"/product-{{item.id}}.html\" target=\"_blank\" title=\"{{item.name}}\">" +
    "                                                <img title=\"{{item.name}} {{item.name2}}\" alt=\"{{item.name}}\" src=\"https://img.hznzcn.com/images/grey.gif\" data-original=\"https://img.hznzcn.com/{{item.images}}\" style=\"display: inline;\">" +
    "                                            </a>" +
    "                                        </div>" +
    "                                        <div class=\"dsrs\"><span class=\"arr-com dq-area{{item.shop}}\">{{item.shopName}}</span>\n" +
    "                                            {{ item.isPresell == 1?'<span class=\"arr-com openBook\">预售</span>':''}}" +
    "<span class=\"belComIco yuncang\"><a href=\"/yuncang/\" style=\"width: 24px\">云仓</a></span>\n" +
    "                                            {{ item.officeImage == 1?'<span class=\"arr-com websitePic\" title=\"此款为官网图片，被投诉后无法处理，请代理商不要上传淘宝、1688！推荐微信等其他渠道销售\">官网</span>':''}}\n" +
    "                                            <a href=\"/product-{{item.id}}.html\" title=\"{{item.name}} {{item.name2}}\" target=\"_blank\">{{item.name}} {{item.name2}}</a></div>\n" +
    "                                        <div class=\"rowTitle\"><a href=\"/product-{{item.id}}.html\" title=\"{{item.keywords}}\" target=\"_blank\">{{item.keywords}}</a></div>\n" +
    "                                        <div class=\"rowPri\"><div class=\"price\">￥{{ price }}</div><div class=\"M-generalize\"><a href=\"/brand-{{item.brandId}}.html\" target=\"_blank\" title=\"{{item.brandName}}\">{{item.brandName}}></a></div></div>\n" +
    "                                    </div>" +
    "                                </li>" +
    "    {{# } }}"+
    "    {{# } }}";

var uploadPlatformContainerTemplate = "<div id=\"UploadPlat_CommonForm\" class=\"uploadPlatform display_none\">\n" +
    "    <div id=\"noLogin\" style=\"display: noLoginStyle;\">\n" +
    "        <div class=\"nowXz\"></div>\n" +
    "        <div class=\"uploadLink\">\n" +
    "            <div class=\"dif-lit-pt\"><a href=\"/product/OneKey?etpName=top&goodsId=598794\" rel=\"nofollow\" target=\"_blank\"><img src=\"https://img.hznzcn.com/imgs/productItem/uploadTian.png\" alt=\"\" /><p>传天猫</p></a></div>\n" +
    "            <div class=\"dif-lit-pt\"><a href=\"/product/OneKey?etpName=top&goodsId=598794\" rel=\"nofollow\" target=\"_blank\"><img src=\"https://img.hznzcn.com/imgs/productItem/uploadTao.png\" alt=\"\" /><p>传淘宝</p></a></div>\n" +
    "            <div class=\"dif-lit-pt\"><a href=\"/product/OneKey?etpName=alibaba&goodsId=598794\" rel=\"nofollow\" target=\"_blank\"><img src=\"https://img.hznzcn.com/imgs/productItem/uploadAli.png\" alt=\"\" /><p>传阿里</p></a></div>\n" +
    "            <div class=\"dif-lit-pt\"><a href=\"/weidian/upload?proid=598794\" rel=\"nofollow\" target=\"_blank\"><img src=\"https://img.hznzcn.com/imgs/productItem/uploadDian.png\" alt=\"\" /><p>传微店</p></a></div>\n" +
    "            <div class=\"dif-lit-pt\"><a href=\"/product/OneKey?etpName=youzan&goodsId=598794\" rel=\"nofollow\" target=\"_blank\"><img src=\"https://img.hznzcn.com/imgs/productItem/uploadZan.png\" alt=\"\" /><p>传有赞</p></a></div>\n" +
    "            <div class=\"dif-lit-pt\"><a href=\"/product/OneKey?etpName=mogujie&goodsId=598794\" rel=\"nofollow\" target=\"_blank\"><img src=\"https://img.hznzcn.com/imgs/productItem/uploadMo.jpg\" alt=\"\" /><p>蘑菇街</p></a></div>\n" +
    "            <div class=\"dif-lit-pt\"><a href=\"/shareProduct/share-598794.html\" rel=\"nofollow\" target=\"_blank\"><img src=\"https://img.hznzcn.com/imgs/productItem/uploadFir.png\" alt=\"\" /><p>传朋友圈</p></a></div>\n" +
    "            <div class=\"dif-lit-pt\"><a href=\"/product/OneKey?etpName=pinduoduo&goodsId=598794\" rel=\"nofollow\" target=\"_blank\"><img src=\"https://img.hznzcn.com/imgs/productItem/pddIcoMax.png\" alt=\"\" /><p>传拼多多</p></a></div>\n" +
    "        </div>\n" +
    "        <div class=\"bot-wrp-txt\">\n" +
    "            <div class=\"mieKen\">\n" +
    "                <div class=\"lcs_wrap\" onclick=\"openUploadProductBatchSet()\">\n" +
    "                    <div class=\"lcs_switch  lcs_off lcs_checkbox_switch\">\n" +
    "                        <div class=\"lcs_cursor\"></div>\n" +
    "                        <div class=\"lcs_label lcs_label_off\">已开启</div>\n" +
    "                        <div class=\"lcs_label lcs_label_on\">已关闭</div>\n" +
    "                    </div>\n" +
    "                </div>\n" +
    "                <div class=\"tetSc\">批量上传</div>\n" +
    "            </div>\n" +
    "            <div class=\"continuous\">提示：开启批量上传，让上传速度飞起。</div>\n" +
    "        </div>\n" +
    "        <a id=\"gotoLogin\" href=\"\" target=\"_blank\" style=\"display:none\"> </a>\n" +
    "    </div>\n" +
    "\n" +
    "    <div id=\"login\" style=\"display: loginDisplayStyle\">\n" +
    "        <div class=\"nowXz\">\n" +
    "            <div class=\"tipF\">目前已有<span id=\"uploadProgressProduct\">uploadProgressProductCount</span>件商品正在上传中</div>\n" +
    "            <div class=\"R-fi\"><a href=\"\" target=\"_blank\" id=\"gotoUploadBatchList\">查看上传列表</a></div>\n" +
    "        </div>\n" +
    "        <div class=\"uploadLink\">\n" +
    "            <div class=\"dif-lit-pt\"><a href=\"/product/OneKey?etpName=top&goodsId=598794\" rel=\"nofollow\" target=\"_blank\"><img src=\"https://img.hznzcn.com/imgs/productItem/uploadTian.png\" alt=\"\" /><p>传天猫</p></a></div>\n" +
    "            <div class=\"dif-lit-pt\"><div class=\"ico_pf\"></div><a href=\"javascript:void(0);\" onclick=\"getUploadProductWithItem(this)\" productId=\"598794\" platform=\"1\" rel=\"nofollow\"><img src=\"https://img.hznzcn.com/imgs/productItem/uploadTao.png\" alt=\"\" /><p>传淘宝</p></a></div>\n" +
    "            <div class=\"dif-lit-pt\"><div class=\"ico_pf\"></div><a href=\"javascript:void(0);\" onclick=\"getUploadProductWithItem(this)\" productId=\"598794\" platform=\"5\" rel=\"nofollow\"><img src=\"https://img.hznzcn.com/imgs/productItem/uploadAli.png\" alt=\"\" /><p>传阿里</p></a></div>\n" +
    "            <div class=\"dif-lit-pt\"><div class=\"ico_pf\"></div><a href=\"javascript:void(0);\" onclick=\"getUploadProductWithItem(this)\" productId=\"598794\" platform=\"2\" rel=\"nofollow\"><img src=\"https://img.hznzcn.com/imgs/productItem/uploadDian.png\" alt=\"\" /><p>传微店</p></a></div>\n" +
    "            <div class=\"dif-lit-pt\"><div class=\"ico_pf\"></div><a href=\"javascript:void(0);\" onclick=\"uploadProductWithoutItem(this)\" productId=\"598794\" platform=\"3\" rel=\"nofollow\"><img src=\"https://img.hznzcn.com/imgs/productItem/uploadZan.png\" alt=\"\" /><p>传有赞</p></a></div>\n" +
    "            <div class=\"dif-lit-pt\"><div class=\"ico_pf\"></div><a href=\"javascript:void(0);\" onclick=\"uploadProductWithoutItem(this)\" productId=\"598794\" platform=\"8\" rel=\"nofollow\"><img src=\"https://img.hznzcn.com/imgs/productItem/uploadMo.jpg\" alt=\"\" /><p>蘑菇街</p></a></div>\n" +
    "            <div class=\"dif-lit-pt\"><a href=\"/shareProduct/share-598794.html\" rel=\"nofollow\" target=\"_blank\"><img src=\"https://img.hznzcn.com/imgs/productItem/uploadFir.png\" alt=\"\" /><p>传朋友圈</p></a></div>\n" +
    "            <div class=\"dif-lit-pt\" style=\"display: \"><div class=\"ico_pf\"></div><a href=\"javascript:void(0);\" onclick=\"uploadProductWithoutItem(this)\" productId=\"598794\" platform=\"9\" rel=\"nofollow\"><img src=\"https://img.hznzcn.com/imgs/productItem/pddIcoMax.png\" alt=\"\" /><p>传拼多多</p></a></div>\n" +
    "        </div>\n" +
    "        <div class=\"bot-wrp-txt\">\n" +
    "            <div class=\"mieKen\">\n" +
    "                <div class=\"lcs_wrap\" onclick=\"closeUploadProductBatchSet()\">\n" +
    "                    <div class=\"lcs_switch  lcs_off lcs_checkbox_switch red\">\n" +
    "                        <div class=\"lcs_cursor cursor-left\"></div>\n" +
    "                        <div class=\"lcs_label lcs_label_off  label_on-opac\">已开启</div>\n" +
    "                        <div class=\"lcs_label lcs_label_on label_off-right\">已关闭</div>\n" +
    "                    </div>\n" +
    "                </div>\n" +
    "                <div class=\"tetSc\">批量上传</div>\n" +
    "            </div>\n" +
    "            <div class=\"hovCont continuous\">批量上传设置 <code>></code></div>\n" +
    "        </div>\n" +
    "    </div>\n" +
    "</div>\n" +
    "<div id=\"failureWithNoLogin\" class=\"failure\" style=\"display: none\">\n" +
    "    <div class=\"itnk\">您还没有登录，请先登录再开启批量上传</div>\n" +
    "    <div class=\"liewq\"><span onclick=\"gotoLoginMethod()\">确定</span></div>\n" +
    "</div>\n" +
    "<div id=\"uploadFailure\" class=\"failure\"></div>\n" +
    "<div id=\"uploadFailureWithNotSetDefault\" class=\"failure\"></div>\n" +
    "<div id=\"defaultSet\" class=\"defSet\"></div>\n" +
    "<div id=\"uploadSelectItem\" class=\"spClassWrap\"></div>\n" +
    "<script id=\"tplDefSet\" type=\"text/html\">\n" +
    "    {{# var message = d.message}}\n" +
    "    {{# var selectType = message.type }}\n" +
    "    {{# var result = message.message}}\n" +
    "    {{# var typeList = d.typeList}}\n" +
    "    {{# var nameList = d.nameList}}\n" +
    "    {{# if(nameList.indexOf('拼多多') > -1) { }}<div class=\"pdActive\">应拼多多官方要求，加价利润不得超过8%请重新设置上传价格</div>{{# } }}\n" +
    "    <div class=\"tabPt\">\n" +
    "        {{# for(var i = 0, len = typeList.length; i < len; i++){ }}\n" +
    "        {{# var type = typeList[i] }}\n" +
    "        {{# var name = nameList[i] }}\n" +
    "        <span class=\"{{# if(type == selectType) { }}ptFcoucs{{# } }}\" onclick=\"shopProfitSettingChange({{type}})\">{{name}}</span>\n" +
    "        {{# } }}\n" +
    "    </div>\n" +
    "    <div class=\"figure\">\n" +
    "        <div class=\"lf-win\">利润：</div>\n" +
    "        <div class=\"rg-ke\">\n" +
    "            <div><label>{{# if(result.profitSetType == 2)  { }} <input type=\"radio\" name=\"profitSetType\" class=\"raido\" checked=\"checked\" value=\"2\">{{# } else { }}<input type=\"radio\" name=\"profitSetType\" class=\"raido\" value=\"2\"> {{# } }}按利润百分比</label><input type=\"text\" id=\"profitRate\" class=\"iptWir\" value=\"{{result.profitRate == null ? '' : result.profitRate }}\">%</div>\n" +
    "            <div style=\"margin-top: 10px;\"> <label>{{# if(result.profitSetType == 1)  { }} <input type=\"radio\" name=\"profitSetType\" class=\"raido\" checked=\"checked\" value=\"1\">{{# } else { }}<input type=\"radio\" name=\"profitSetType\" class=\"raido\" value=\"1\"> {{# } }}按固定利润</label><input type=\"text\" id=\"fixProfit\" class=\"iptWir\" value=\"{{result.fixProfit == null ? '' : result.fixProfit }}\">元</div>\n" +
    "        </div>\n" +
    "        <div style=\"clear: both;\"></div>\n" +
    "        {{# if(nameList.indexOf('拼多多') > -1) { }}<div style=\"color: #FF414D;margin-top: 5px;\">说明：应拼多多官方要求，加价利润不得超过8%</div>{{# } }}\n" +
    "    </div>\n" +
    "    {{# if(selectType == 1 || selectType == 5 || selectType == 9) { }}\n" +
    "    <div class=\"iptLst\">\n" +
    "        <span class=\"aeiLf\">运费模板:</span>\n" +
    "        <select id=\"templateSelect\" onchange=\"changeTemplate()\">\n" +
    "            {{# if(result.freList && result.freList.length > 0) { }}\n" +
    "            {{# for(var i = 0, len = result.freList.length; i < len; i++){ }}\n" +
    "            {{# var fre = result.freList[i] }}\n" +
    "            {{# if(result.templateId && result.templateId == fre.templateId)  { }}<option value=\"{{fre.templateId}}\" selected=\"selected\">{{fre.name}}</option>{{# } else { }}<option value=\"{{fre.templateId}}\">{{fre.name}}</option>{{# } }}\n" +
    "            {{# } }}\n" +
    "            {{# } else { }}\n" +
    "            <option value=\"\">暂无运费模板</option>\n" +
    "            {{# } }}\n" +
    "        </select>\n" +
    "        <span class=\"flushIco\" onclick=\"reloadTemplate()\">刷新</span>\n" +
    "    </div>\n" +
    "    {{# } }}\n" +
    "    <div class=\"iptLst\">\n" +
    "        <span class=\"aeiLf\">商家状态:</span>\n" +
    "        <label>{{# if(result.isWarehouse == 1)  { }} <input type=\"radio\" name=\"isWarehouse\" checked=\"checked\" value=\"1\"> {{# } else { }} <input type=\"radio\" name=\"isWarehouse\" value=\"1\"> {{# } }}<span>立即上架</span></label>\n" +
    "        {{# if(message.type == 1 || message.type == 5 || message.type == 8) { }}\n" +
    "        <label>{{# if(result.isWarehouse == 2)  { }} <input type=\"radio\" name=\"isWarehouse\" checked=\"checked\" value=\"2\"> {{# } else { }} <input type=\"radio\" name=\"isWarehouse\" value=\"2\"> {{# } }}<span>放入仓库</span></label>\n" +
    "        {{# } }}\n" +
    "    </div>\n" +
    "    <div class=\"laeiIpt\">\n" +
    "        <span onclick=\"saveDefSet()\">保存</span>\n" +
    "        <span class=\"abolish\" onclick=\"closeDefSet()\">取消</span>\n" +
    "    </div>\n" +
    "</script>\n" +
    "<script id=\"tplFailure\" type=\"text/html\">\n" +
    "    <div class=\"itnk\">{{d}}</div>\n" +
    "    <div class=\"liewq\"><span onclick=\"failureClose()\">确定</span></div>\n" +
    "</script>\n" +
    "<script id=\"tplFailureWithNotSetDefault\" type=\"text/html\">\n" +
    "    <div class=\"itnk\">{{d.message}}</div>\n" +
    "    <div class=\"liewq\"><span onclick=\"failureCloseWithNotSetDefault({{d.platform}})\">确定</span></div>\n" +
    "</script>\n" +
    "<script id=\"tplUploadSelectItem\" type=\"text/html\">\n" +
    "    <div class=\"sp-tp\">请选择您的店铺分类</div>\n" +
    "    <div class=\"ipGrade\">\n" +
    "        <select id=\"fatherItem\" onchange=\"changeUploadItem()\">\n" +
    "            {{# if(d.parentItemList.length > 0) { }}\n" +
    "            {{# for(var i = 0, len = d.parentItemList.length; i < len; i++){ }}\n" +
    "            {{# var parentItem = d.parentItemList[i] }}\n" +
    "            <option value=\"{{parentItem.id}}\">{{parentItem.name}}</option>\n" +
    "            {{# } }}\n" +
    "            {{# } else { }}\n" +
    "            <option value=''>暂无分类</option>\n" +
    "            {{# } }}\n" +
    "        </select>\n" +
    "        {{# if(d.platform != 2) { }}\n" +
    "        <select id=\"childItem\">\n" +
    "            {{# if(d.childItemList.length > 0) { }}\n" +
    "            {{# for(var i = 0, len = d.childItemList.length; i < len; i++){ }}\n" +
    "            {{# var childItemList = d.childItemList[i] }}\n" +
    "            <option value=\"{{childItemList.id}}\">{{childItemList.name}}</option>\n" +
    "            {{# } }}\n" +
    "            {{# } else { }}\n" +
    "            <option value=''>暂无分类</option>\n" +
    "            {{# } }}\n" +
    "        </select>\n" +
    "        {{# } }}\n" +
    "        <span class=\"flushBtn\" onclick=\"reloadUploadItem({{d.platform}})\">刷新</span>\n" +
    "    </div>\n" +
    "    <div class=\"morke\">系统默认24小时自动更新您的店铺分类</div>\n" +
    "    <div class=\"czBtn\">\n" +
    "        <span class=\"qx-cel\" onclick=\"uploadProductWithItemCancel()\">取消</span>\n" +
    "        <span class=\"qr-curif\" onclick=\"uploadProductWithItem({{d.productId}},{{d.platform}})\">确定</span>\n" +
    "    </div>\n" +
    "</script>\n";

var newHzIndexHotSaleTemplate = "\n" +
    "    <div class=\"M-decorate\">\n" +
    "        <div class=\"M-decorateTop\">\n" +
    "            <div class=\"M-topLeft\">\n" +
    "                <h3 class=\"M-sizeColor\">当季热卖</h3>\n" +
    "            </div>\n" +
    "            <ul class=\"M-decorateUl\" id=\"canTab6\">\n" +
    "                {{# var indexB2TabsList = d.indexB2TabsList}}\n" +
    "                {{# var indexB2TabsListLength = d.indexB2TabsListLength}}\n" +
    "                {{# for(var i in indexB2TabsList){ }}\n" +
    "                {{# if(!indexB2TabsList.hasOwnProperty(i)){ continue;} var item=indexB2TabsList[i];}}\n" +
    "                <li {{# if (item.rowNum == 1) { }}class=\"add-widTo\"{{# } else if(item.rowNum == indexB2TabsListLength) { }}class=\"rightBor\"{{# } }}>\n" +
    "                    <a href=\"{{item.url}}\" target=\"_blank\" class=\"random_a\">{{item.name}}</a>\n" +
    "                </li>\n" +
    "                {{# } }}\n" +
    "            </ul>\n" +
    "            <div class=\"moreLink\"><a href=\"/hot_sale/index.html\" target=\"_blank\">更多</a></div>\n" +
    "        </div>\n" +
    "        <div class=\"M-decorateLeft\">\n" +
    "            <div class=\"djGeneral djBoxShuf\" id=\"hkieL\">\n" +
    "                <div class=\"title\">热销排行榜</div>\n" +
    "                <div class=\"tab_box\">\n" +
    "                    {{# var firstProductListLength = d.firstProductListLength}}\n" +
    "                    {{# if (firstProductListLength > 0) { }}\n" +
    "                    <div class=\"listWp\">\n" +
    "                        {{# var userGroup = document.getElementById(\"hidUserGroup\").value;}}\n" +
    "                        {{# var firstProductList = d.firstProductList}}\n" +
    "                        {{# for(var i in firstProductList){ }}\n" +
    "                        {{# if(!firstProductList.hasOwnProperty(i)){ continue;} var item=firstProductList[i];}}\n" +
    "                        <a href=\"/product-{{item.productId}}.html\" target=\"_blank\" class=\"listItem\">\n" +
    "                            <div class=\"phIto\"><img src=\"https://img.hznzcn.com/{{item.image}}\" alt=\"\">{{# if (item.rowNum < 4) { }}<span class=\"rank rankNum{{item.rowNum}}\">{{# } }}</span></div>\n" +
    "                            <div class=\"rigMie\">\n" +
    "                                <div class=\"kel\">{{item.productName}}</div>\n" +
    "                                <div class=\"price\">￥{{#  if(item.buyGroup && item.buyGroup!=''){   }}{{#  var canShowActivityPrice=false;   }}{{# if(userGroup==''||userGroup==undefined&&(item.buyGroup.indexOf(',5,')!=-1&&item.buyGroup.indexOf(',12,')!=-1&&item.buyGroup.indexOf(',14,')!=-1&&item.buyGroup.indexOf(',15,')!=-1))  {   }}{{# canShowActivityPrice=true; }}{{# } }}{{#  if(item.buyGroup.indexOf(','+userGroup+',')!=-1) {    }}{{#  canShowActivityPrice=true;  }}{{# } }}{{#    if(canShowActivityPrice){}}{{# if( item.activityPrice && item.activityPrice != 0 && item.activityEndTime > new Date().getTime() ) {    }}{{  (item.activityPrice).toFixed(2)   }}{{#  } else {   }}{{  (item.price).toFixed(2)   }}{{# }  }}{{#  } else {   }}{{ (item.price).toFixed(2)  }}{{# } }}{{#  } else { }}{{#  if( item.activityPrice && item.activityPrice != 0 && item.activityEndTime > new Date().getTime() ) {   }}{{   (item.activityPrice).toFixed(2)  }}{{#   } else { }}{{  (item.price).toFixed(2)  }}{{#   }  }}{{#   }  }}</div>\n" +
    "                            </div>\n" +
    "                        </a>\n" +
    "                        {{# } }}\n" +
    "                    </div>\n" +
    "                    {{# } }}\n" +
    "                    {{# var userGroup = document.getElementById(\"hidUserGroup\").value; }}\n" +
    "                    {{# var secondProductListLength = d.secondProductListLength}}\n" +
    "                    {{# if (secondProductListLength > 0) { }}\n" +
    "                    <div class=\"listWp hide\">\n" +
    "                        {{# var secondProductList = d.secondProductList}}\n" +
    "                        {{# for(var i in secondProductList){ }}\n" +
    "                        {{# if(!secondProductList.hasOwnProperty(i)){ continue;} var item=secondProductList[i];}}\n" +
    "                        <a href=\"/product-{{item.productId}}.html\" target=\"_blank\" class=\"listItem\">\n" +
    "                            <div class=\"phIto\"><img src=\"https://img.hznzcn.com/{{item.image}}\" alt=\"\"></div>\n" +
    "                            <div class=\"rigMie\">\n" +
    "                                <div class=\"kel\">{{item.productName}}</div>\n" +
    "                                <div class=\"price\">￥{{#  if(item.buyGroup && item.buyGroup!=''){   }}{{#  var canShowActivityPrice=false;   }}{{# if(userGroup==''||userGroup==undefined&&(item.buyGroup.indexOf(',5,')!=-1&&item.buyGroup.indexOf(',12,')!=-1&&item.buyGroup.indexOf(',14,')!=-1&&item.buyGroup.indexOf(',15,')!=-1))  {   }}{{# canShowActivityPrice=true; }}{{# } }}{{#  if(item.buyGroup.indexOf(','+userGroup+',')!=-1) {    }}{{#  canShowActivityPrice=true;  }}{{# } }}{{#    if(canShowActivityPrice){}}{{# if( item.activityPrice && item.activityPrice != 0 && item.activityEndTime > new Date().getTime() ) {    }}{{  (item.activityPrice).toFixed(2)   }}{{#  } else {   }}{{  (item.price).toFixed(2)   }}{{# }  }}{{#  } else {   }}{{ (item.price).toFixed(2)  }}{{# } }}{{#  } else { }}{{#  if( item.activityPrice && item.activityPrice != 0 && item.activityEndTime > new Date().getTime() ) {   }}{{   (item.activityPrice).toFixed(2)  }}{{#   } else { }}{{  (item.price).toFixed(2)  }}{{#   }  }}{{#   }  }}</div>\n" +
    "                            </div>\n" +
    "                        </a>\n" +
    "                        {{# } }}\n" +
    "                    </div>\n" +
    "                    {{# } }}\n" +
    "                    {{# var userGroup = document.getElementById(\"hidUserGroup\").value; }}\n" +
    "                    {{# var thirdProductListLength = d.thirdProductListLength}}\n" +
    "                    {{# if (thirdProductListLength > 0) { }}\n" +
    "                    <div class=\"listWp hide\">\n" +
    "                        {{# var thirdProductList = d.thirdProductList}}\n" +
    "                        {{# for(var i in thirdProductList){ }}\n" +
    "                        {{# if(!thirdProductList.hasOwnProperty(i)){ continue;} var item=thirdProductList[i];}}\n" +
    "                        <a href=\"/product-{{item.productId}}.html\" target=\"_blank\" class=\"listItem\">\n" +
    "                            <div class=\"phIto\"><img src=\"https://img.hznzcn.com/{{item.image}}\" alt=\"\"></div>\n" +
    "                            <div class=\"rigMie\">\n" +
    "                                <div class=\"kel\">{{item.productName}}</div>\n" +
    "                                <div class=\"price\">￥{{#  if(item.buyGroup && item.buyGroup!=''){   }}{{#  var canShowActivityPrice=false;   }}{{# if(userGroup==''||userGroup==undefined&&(item.buyGroup.indexOf(',5,')!=-1&&item.buyGroup.indexOf(',12,')!=-1&&item.buyGroup.indexOf(',14,')!=-1&&item.buyGroup.indexOf(',15,')!=-1))  {   }}{{# canShowActivityPrice=true; }}{{# } }}{{#  if(item.buyGroup.indexOf(','+userGroup+',')!=-1) {    }}{{#  canShowActivityPrice=true;  }}{{# } }}{{#    if(canShowActivityPrice){}}{{# if( item.activityPrice && item.activityPrice != 0 && item.activityEndTime > new Date().getTime() ) {    }}{{  (item.activityPrice).toFixed(2)   }}{{#  } else {   }}{{  (item.price).toFixed(2)   }}{{# }  }}{{#  } else {   }}{{ (item.price).toFixed(2)  }}{{# } }}{{#  } else { }}{{#  if( item.activityPrice && item.activityPrice != 0 && item.activityEndTime > new Date().getTime() ) {   }}{{   (item.activityPrice).toFixed(2)  }}{{#   } else { }}{{  (item.price).toFixed(2)  }}{{#   }  }}{{#   }  }}</div>\n" +
    "                            </div>\n" +
    "                        </a>\n" +
    "                        {{# } }}\n" +
    "                    </div>\n" +
    "                    {{# } }}\n" +
    "                </div>\n" +
    "            </div>\n" +
    "        </div>\n" +
    "        <div class=\"lr_warp_bg\" id=\"aTapWrap1\">\n" +
    "            {{# var userGroup = document.getElementById(\"hidUserGroup\").value;}}\n" +
    "            {{# var indexB2TabsList = d.indexB2TabsList}}\n" +
    "            {{# for(var i in indexB2TabsList){ }}\n" +
    "            {{# if(!indexB2TabsList.hasOwnProperty(i)){ continue;} var item=indexB2TabsList[i];}}\n" +
    "            <div class=\"M-decorateRight tab{{item.rowNum - 1}}\">\n" +
    "                {{# var productList = item.productList}}\n" +
    "                {{# for(var j in productList){ }}\n" +
    "                {{# if(!productList.hasOwnProperty(j)){ continue;} var product=productList[j];}}\n" +
    "                <div class=\"M-decorateList\">\n" +
    "                    <div class=\"shopMianPto\">\n" +
    "                        <a href=\"{{product.url}}\" target=\"_blank\"><img title=\"{{product.name}}\" alt=\"{{product.name}}\" src=\"https://img.hznzcn.com/images/grey.gif\" data-original=\"https://img.hznzcn.com/{{product.image}}\" /></a>\n" +
    "                    </div>\n" +
    "                    <div class=\"shopName\"><a target=\"_blank\" href=\"{{product.url}}\">{{product.name}} {{product.name2}}</a></div>\n" +
    "                    <div class=\"shopItem\"><a target=\"_blank\" href=\"{{product.url}}\" title=\"{{product.keyWords}}\">{{product.keyWords}}</a></div>\n" +
    "                    <div class=\"optional\">\n" +
    "                        <p class=\"price\">￥{{#  if(product.buyGroup && product.buyGroup!=''){   }}{{#  var canShowActivityPrice=false;   }}{{# if(userGroup==''||userGroup==undefined&&(product.buyGroup.indexOf(',5,')!=-1&&product.buyGroup.indexOf(',12,')!=-1&&product.buyGroup.indexOf(',14,')!=-1&&product.buyGroup.indexOf(',15,')!=-1))  {   }}{{# canShowActivityPrice=true; }}{{# } }}{{#  if(product.buyGroup.indexOf(','+userGroup+',')!=-1) {    }}{{#  canShowActivityPrice=true;  }}{{# } }}{{#    if(canShowActivityPrice){}}{{# if( product.activityPrice && product.activityPrice != 0 && product.activityEndTime > new Date().getTime() ) {    }}{{  (product.activityPrice).toFixed(2)   }}{{#  } else {   }}{{  (product.price).toFixed(2)   }}{{# }  }}{{#  } else {   }}{{ (product.price).toFixed(2)  }}{{# } }}{{#  } else { }}{{#  if( product.activityPrice && product.activityPrice != 0 && product.activityEndTime > new Date().getTime() ) {   }}{{   (product.activityPrice).toFixed(2)  }}{{#   } else { }}{{  (product.price).toFixed(2)  }}{{#   }  }}{{#   }  }}</p>\n" +
    "                        <div class=\"uploadNew\">\n" +
    "                            <span onclick=\"show_uploadPlatform('{{product.productId}}')\">一键上传</span>\n" +
    "                        </div>\n" +
    "                    </div>\n" +
    "                    <div class=\"clear\"></div>\n" +
    "                </div>\n" +
    "                {{# } }}\n" +
    "            </div>\n" +
    "            {{# } }}\n" +
    "        </div>\n" +
    "    </div>";

var A4Template = "{{# var list = d.list}}\n" +
    "                            {{# for(var i in list){ }}\n" +
    "                            {{# if(!list.hasOwnProperty(i)){ continue;} var item=list[i];}}\n" +
    "                            <li><a href=\"{{item.url}}\" target=\"_blank\" title=\"{{item.name}}\"><img src=\"https://img.hznzcn.com/{{item.image}}\" alt=\"{{item.name}}\"></a></li>\n" +
    "                            {{# } }}";

var brandCouponTemplate = "{{# if (d.coupons.length > 0) { }}\n" +
    "        <div class=\"introduce-title\">\n" +
    "            <div class=\"line-m1\"></div>\n" +
    "            <div class=\"total-class\">\n" +
    "                <p class=\"totalP2\">优惠券领取</p>\n" +
    "                <p class=\"totalP1\">Collect coupons</p>\n" +
    "            </div>\n" +
    "            <div class=\"line-m2\"></div>\n" +
    "        </div>\n" +
    "        <div class=\"monQuanWrap\">\n" +
    "        {{# for (var i = 0, len = d.coupons.length; i < len; i++) { }}\n" +
    "        {{#     var item = d.coupons[i]; }}\n" +
    "            {{# if (item.couponReceived == 0) { }}\n" +
    "            <div id=\"citem_{{item.couponId}}\" class=\"dif_quan difCouponBg1\">\n" +
    "            {{# } else { }}\n" +
    "            <div id=\"citem_{{item.couponId}}\" class=\"dif_quan difCouponBg2\">\n" +
    "            {{# } }}\n" +
    "                <div class=\"listLf \">\n" +
    "                    <div class=\"how-money\">\n" +
    "                        <i>￥</i>\n" +
    "                        <span class=\"unit\">{{item.amount}}</span>\n" +
    "                    </div>\n" +
    "                    <p class=\"litP1 \">满{{item.amountLimit}}元可用</p>\n" +
    "                </div>\n" +
    "                <div class=\"listRg\">\n" +
    "                    <div class=\"ltRgTop\">\n" +
    "                        <span class=\"dpki\">店铺券</span>\n" +
    "                        <span class=\"nameKine\">仅限【{{item.brandName}}】店铺商品使用</span>\n" +
    "                    </div>\n" +
    "                    <div class=\"surplusNum\">\n" +
    "                        <span>剩余:<span id=\"remaining_num_{{item.couponId}}\">{{item.totalLimit - item.receivedCouponCnt}}</span>张</span>\n" +
    "                        <span>可领:<span id=\"receive_num_{{item.couponId}}\">{{item.getNumLimit}}</span>张</span>\n" +
    "                    </div>\n" +
    "                    <div class=\"validity\">\n" +
    "                        <div class=\"timeAct\">\n" +
    "                            {{item.startTime}}-{{item.endTime}}\n" +
    "                        </div>\n" +
    "                        <div class=\"limit\">\n" +
    "                            {{# if (item.couponReceived == 0) { }}\n" +
    "                                <a href=\"javascript: receiveCoupon({{# if (d.isLogin === '0') { }}0{{# } else { }}{{item.couponId}}{{# } }}, {{item.brandId}})\">立即领取</a>\n" +
    "                            {{# } else { }}\n" +
    "                                <a href=\"javascript: useCoupon({{item.couponId}}, {{item.brandId}})\">去使用</a>\n" +
    "                            {{# } }}\n" +
    "                        </div>\n" +
    "                    </div>\n" +
    "                </div>\n" +
    "            </div>\n" +
    "        {{# } }}\n" +
    "        </div>\n" +
    "    {{# } }}";